#define _CRT_SECURE_NO_WARNINGS
#include"slist.h"

void TestSList()
{
	SListNode* plist = NULL;

	SListPushBack(&plist, 0);

	SListPushFront(&plist, 1);
	SListPushFront(&plist, 2);
	SListPushFront(&plist, 3);
	SListPushFront(&plist, 4);

	SListPushBack(&plist, 5);

	SListPopBack(&plist);

	SListPopFront(&plist);

	SListNode* p = SListFind(plist, 3);
	printf("%p\n", p);
	p->data = 20;

	SListEraseAfter(p);

	SListInsertAfter(p, 5);

	SListPrint(plist);

	SListDestroy(&plist);

}
int main()
{
	TestSList();
	return 0;
}